package zzl.rmi;

/**
 * @ClassName PersonClient
 * @Description TODO
 * @Author BossZ
 * @Version 1.0
 * @Date 2019/1/29-11:35
 **/
public class PersonClient {
    public static void main(String [] args) {
        try {
            Person person = new Person_Stub();
            int age = person.getAge();
            String name = person.getName();
            System.out.println(name + " is " + age + " years old");
        } catch(Throwable t) {
            t.printStackTrace();
        }
    }
}
